<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="java.util.*" import="Triangle.Triangle"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>测试结果</title>
</head>
<body> 
	<%
		Integer ia,ib,ic;
		String sa,sb,sc;
		Vector VErrs=new Vector();
		sa = request.getParameter("aedge");
		sb = request.getParameter("bedge");
		sc = request.getParameter("cedge");
		try{
			ia=Integer.valueOf(sa);
			ib=Integer.valueOf(sb);
			ic=Integer.valueOf(sc);
		}catch(NumberFormatException e){
			VErrs.addElement(new String("三角形三边为正整数！"));
			ia = new Integer(0);
			ib = new Integer(0);
			ic = new Integer(0);
		}
		
		Triangle t = new Triangle(ia, ib, ic);
		out.println(t.TypesOfTriangle());
		
		for(int i=0; i<VErrs.size(); i++)
			out.println(VErrs.elementAt(i).toString());
	%>
</body>
</html>